package com.ruoyi.statistics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.statistics.mapper.ResInformationCollectionMapper;
import com.ruoyi.statistics.domain.ResInformationCollection;
import com.ruoyi.statistics.service.IResInformationCollectionService;

/**
 * 资讯收藏Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-20
 */
@Service
public class ResInformationCollectionServiceImpl implements IResInformationCollectionService 
{
    @Autowired
    private ResInformationCollectionMapper resInformationCollectionMapper;

    /**
     * 查询资讯收藏
     * 
     * @param id 资讯收藏主键
     * @return 资讯收藏
     */
    @Override
    public ResInformationCollection selectResInformationCollectionById(Long id)
    {
        return resInformationCollectionMapper.selectResInformationCollectionById(id);
    }

    /**
     * 查询资讯收藏列表
     * 
     * @param resInformationCollection 资讯收藏
     * @return 资讯收藏
     */
    @Override
    public List<ResInformationCollection> selectResInformationCollectionList(ResInformationCollection resInformationCollection)
    {
        return resInformationCollectionMapper.selectResInformationCollectionList(resInformationCollection);
    }

    /**
     * 新增资讯收藏
     * 
     * @param resInformationCollection 资讯收藏
     * @return 结果
     */
    @Override
    public int insertResInformationCollection(ResInformationCollection resInformationCollection)
    {
        return resInformationCollectionMapper.insertResInformationCollection(resInformationCollection);
    }

    /**
     * 修改资讯收藏
     * 
     * @param resInformationCollection 资讯收藏
     * @return 结果
     */
    @Override
    public int updateResInformationCollection(ResInformationCollection resInformationCollection)
    {
        return resInformationCollectionMapper.updateResInformationCollection(resInformationCollection);
    }

    /**
     * 批量删除资讯收藏
     * 
     * @param ids 需要删除的资讯收藏主键
     * @return 结果
     */
    @Override
    public int deleteResInformationCollectionByIds(Long[] ids)
    {
        return resInformationCollectionMapper.deleteResInformationCollectionByIds(ids);
    }

    /**
     * 删除资讯收藏信息
     * 
     * @param id 资讯收藏主键
     * @return 结果
     */
    @Override
    public int deleteResInformationCollectionById(Long id)
    {
        return resInformationCollectionMapper.deleteResInformationCollectionById(id);
    }
}
